/*
*作者---王婷
*
*/
<!-- <template>
    <div class="selfSupport">
        <img src="./../../assets/my/member.jpg" v-if = 'notMember' class='notMemberPage'>
        <taking v-if = "isShow=='taking'&&sData" :sData="sData" @send = 'send'></taking>
        <sending v-if = "isShow=='sending'&&sData" :sData="sData"></sending>
        <my v-if = "isShow=='my'&&sData" :sData="sData"></my>
        <selfFooter v-on:show="showWhat" :sData="sData" v-if='sData' ref='change'></selfFooter>
    </div>
</template>
<script type="text/javascript">
  export default{
    data(){
      return{
        sData:'',
        notMember:false,
        isShow:'taking',
        dispatchingType:1,
        
      }
    },
    methods:{
        send (){console.log('111111');
            this.isShow = 'sending';
            this.$refs.change.changePage ('sending');
        },
        showWhat (obj) {
            this.isShow = obj;
        }
    },
    created(){
        //this.$router.push('/SelfSupport/Taking');
        this.getAjax('/order/remote/dispatchingForAdmin', {'currentPage':1},
        (res) => {
            if(res&&res.data){
                console.log('下面是数据');
                this.sData = res.data;
                console.log(this.sData)
                if(res.data.admin.dispatchingType==1){
                    //console.log('自营配送订单池') 
                } else if(res.data.admin.dispatchingType == 2){
                    //console.log('第三方配送人员')
                } else if(res.data.admin.dispatchingType == 3){
                    //console.log('快递配送')
                }else{
                    console.log('不是配送人员')
                    this.notMember = true;
                }
            }else{
                m$.template({
                   val: '很抱歉,失败了,请稍后再试',
                   time: 1500
                })
            }
          
        })
    },
    components: {
        selfFooter: require('@/components/selfSupport/Footer'),
        my: require('@/components/selfSupport/My'),
        sending: require('@/components/selfSupport/Sending'),
        taking: require('@/components/selfSupport/Taking')
    },
}
</script>
<style scoped lang="less">
   .selfSupport{
        height:100%;
        width:100%;
        background: #ececec;
        .notMemberPage{
            width:100%;
            height:100%;
            position: absolute;
            top:0;
            z-index: 3;
        }
   }
</style> -->